package com.aerfafish.spider.constant;

public class CacheConstant {

    public static String getUpdateFundKey(String code) {
        return UPDATE_FUND_KEY + code;
    }

    public static String getUpdateFundLock(String code) {
        return UPDATE_FUND_LOCK + code;
    }

    public static String getUpdateCompanyKey(String code) {
        return UPDATE_COMPANY_KEY + code;
    }

    public static String getUpdateCompanyLock(String code) {
        return UPDATE_COMPANY_LOCK + code;
    }

    public static String getUpdatePersonKey(String code) {
        return UPDATE_PERSON_KEY + code;
    }

    public static String getUpdatePersonLock(String code) {
        return UPDATE_PERSON_LOCK + code;
    }

    public static String getUpdateShareKey(String code) {
        return UPDATE_SHARE_KEY + code;
    }

    public static String getUpdateShareLock(String code) {
        return UPDATE_SHARE_LOCK + code;
    }

    private static String UPDATE_FUND_KEY = "UPDATE:TIME:FUND:";

    private static String UPDATE_FUND_LOCK = "UPDATE:LOCK:FUND:";

    private static String UPDATE_COMPANY_KEY = "UPDATE:TIME:COMPANY:";

    private static String UPDATE_COMPANY_LOCK = "UPDATE:LOCK:COMPANY:";

    private static String UPDATE_PERSON_KEY = "UPDATE:TIME:PERSON:";

    private static String UPDATE_PERSON_LOCK = "UPDATE:LOCK:PERSON:";

    private static String UPDATE_SHARE_KEY = "UPDATE:TIME:SHARE:";

    private static String UPDATE_SHARE_LOCK = "UPDATE:LOCK:SHARE:";

}
